/**
 * @name function-search
 * @id python/function-search
 */

import python
import util

from File f,Module mod,Location location,string loc,Scope scope,Function func,string functionName,string filePath,string modName,string scopeName
where
isSource(f) and
scope=func.getScope() and
mod=scope.getEnclosingModule() and
f=mod.getFile() and
filePath=f.getAbsolutePath() and
location=func.getLocation() and
loc=getLocText(location) and
modName=mod.toString() and
scopeName=getScopeName(scope) and
functionName=func.toString()

select filePath,modName,scopeName,functionName,loc